package com.scott.ch100;

/**
 * @author 黄后林
 * @version 1.0
 * @note
 * @date 2021-12-18 22:50:10
 */
public class Client {

    public static void main(String[] args) {

        RoleService<Number> service = new RoleService<>();
        service.setData(100);
        print(service);

        RoleService<Integer> service2 = new RoleService<>();
        service2.setData(100);
//        报错 怎么解决? ch110
//        print(service2);

    }

    public static void  print(RoleService<Number> service) {

        Number data = service.getData();
        System.out.println(data);

    }
}
